<template>
  <q-page>
    <div class="container" v-if="!account.username">
      <div class="row q-col-gutter-md">
        <div class="col-12">
          <div class="text-h5 text-center">登录</div>
        </div>
        <div class="col-12">
          <router-view/>
        </div>
      </div>
    </div>
    <div v-else>
      <router-view/>
    </div>
  </q-page>
</template>

<script>
export default {
  name: "Account",
  computed: {
    account: {
      get() {
        return this.$store.state.account;
      }
    }
  },
  methods: {}
}
</script>

<style scoped>

</style>
